package com.qf.controller.caiwu_controller;

import com.qf.bean.ClientName;
import com.qf.service.caiwu_service.ClientNameService;
import com.qf.utils.caiwu.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/name")
public class ClientNameController {
    @Autowired
    private ClientNameService clientNameService;
    @RequestMapping("/getNames")
    @ResponseBody
    //根据类型id查询客户名称
    public List<ClientName> getNames(Integer tid){
        //根据类型id查询客户名称
        List<ClientName> nameList = clientNameService.selectAll(tid);
        return nameList;
    }
}